Skip to content

Break out system inputs vs generic distance for setbacks - #272

Merged
ppinchuk merged 16 commits into
mainfrom
pp/break_out_system_inputs_setbacks
May 10, 2026
Merged

ppinchuk merged 16 commits into
mainfrom
pp/break_out_system_inputs_setbacks

Conversation

@ppinchuk

@ppinchuk ppinchuk commented May 9, 2026

Copy link
Copy Markdown
Collaborator

Previously, the system height acted as the generic setback distance, which was a bit confusing. To make the experience a little more intuitive for users, we now have separate inputs for the technology parameters (typically height-based values) as well as a generic setback distance inputs. This arguably introduces a little bit of redundancy in the case where you do want to model the generic setback distance as 1x the system height, but in most cases this offers more flexibility than the previous approach while being a little more intuitive for the user.

Thanks again to @gabezuckerman for brainstorming this with me!

@ppinchuk ppinchuk self-assigned this May 9, 2026
@ppinchuk ppinchuk added breaking Breaks something in the API or config enhancement Update to logic or general code improvements p-high Priority: high topic-setbacks Issues/pull requests related to setbacks calculations labels May 9, 2026
@ppinchuk ppinchuk linked an issue May 9, 2026 that may be closed by this pull request
@codecov-commenter

codecov-commenter commented May 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.63636% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.86%. Comparing base (32e9972) to head (8359791).

Files with missing lines Patch % Lines
reVX/exclusions/setbacks/regulations.py 90.24% 2 Missing and 2 partials ⚠️
reVX/exclusions/setbacks/_cli.py 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #272   +/-   ##
=======================================
  Coverage   70.85%   70.86%           
=======================================
  Files          82       82           
  Lines       10566    10582   +16     
  Branches     1224     1228    +4     
=======================================
+ Hits         7487     7499   +12     
- Misses       2594     2596    +2     
- Partials      485      487    +2     
Flag Coverage Δ
unittests 70.86% <88.63%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
reVX/exclusions/setbacks/base.py 93.98% <100.00%> (ø)
reVX/exclusions/setbacks/_cli.py 60.68% <50.00%> (ø)
reVX/exclusions/setbacks/regulations.py 89.10% <90.24%> (-2.66%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ppinchuk
ppinchuk merged commit a4b3ae2 into main May 10, 2026
11 checks passed
@ppinchuk
ppinchuk deleted the pp/break_out_system_inputs_setbacks branch May 10, 2026 00:34
github-actions Bot pushed a commit that referenced this pull request May 10, 2026
…_setbacks

Break out system inputs vs generic distance for setbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaks something in the API or config enhancement Update to logic or general code improvements p-high Priority: high topic-setbacks Issues/pull requests related to setbacks calculations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tech-specific inputs to setbacks

2 participants